extends Talent
func init():
	name = "军备补给"
func _connect():
	sys.main.connect("onBattleEnd",self,"onBattleEnd")

func onBattleEnd():
	var rnd = min(int(sys.main.player.lv + 0.6*lv), 12)
	if sys.rndPer(rnd):
		print("天赋：军备补给，触发成功！")
		sys.main.player.addItem(sys.newItem(itemData.rndGet(true)))

func get_info():
	return "回合结束时，有一定概率获得一件随机装备\n几率随玩家等级与天赋等级提高而提高"

